package cn.com.hhrcw.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Date;

/**
 * 文件导出下载列表
 *
 * @author lixingxing
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName(value = "file_download")
public class FileDownload implements Serializable {
    @TableId(value = "id", type = IdType.ID_WORKER)
    private Long id;

    /**
     * 创建时间
     */
    @TableField(value = "create_time")
    private Date createTime;

    /**
     * 完成时间
     */
    @TableField(value = "finish_time")
    private Date finishTime;

    /**
     * 状态 EXEC  正在执行   FINISHED  完成
     */
    @TableField(value = "`state`")
    private String state;

    /**
     * 文件地址
     */
    @TableField(value = "url")
    private String url;

    /**
     * 时长(秒)
     */
    @TableField(value = "create_by")
    private String createBy;

    /**
     * 来源
     */
    @TableField(value = "`from`")
    private String from;

    private static final long serialVersionUID = 1L;
}